﻿using EventBus;
using LiteStep.Arbitrage;
using LiteStep.Events.Handlers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LiteStep.Events
{
    public class ArbitrageCalculationUpdatedEvent : BaseEvent<IArbitrageCalculationUpdatedEventHandler>
    {
        public ArbitrageCalculation Calculation { get; private set; }

        public ArbitrageCalculationUpdatedEvent(ArbitrageCalculation calculation)
        {
            Calculation = calculation;
        }

        public override void Dispatch(IArbitrageCalculationUpdatedEventHandler handler)
        {
            handler.OnArbitrageCalculationUpdatedEvent(this);
        }
    }
}
